LDFLAGS = -ldl -L.

all: framework tournament

FRAMEWORK_OBJ = framework.o players_side.o referee_side.o board.o
	
framework:  $(FRAMEWORK_OBJ) libcommon_sdk.a 
	$(CXX) $(LDFLAGS) -lcommon_sdk -o $@ $(FRAMEWORK_OBJ)

common_sdk: libcommon_sdk.a

libcommon_sdk.a: board.o
	ar rc $@ $^
	ranlib $@
	

clean:
	rm -rf framework framework.exe tournament tournamnet.exe *.o libcommon_sdk.a

.PHONY: clean common_sdk
